﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BenevolentSunData
{
    public class Beam : ICloneable
    {
        public Color Color = Color.White;


        public Boolean Merge(Beam beam)
        {
            if (Color.Equals(beam.Color))
                return false;
            Color mergedColor = new Color(Color.ToVector4() + beam.Color.ToVector4());
            Color = mergedColor;

            return true;
        }

        public bool Equals(Beam beam)
        {
            if (Color.Equals(beam.Color))
                return true;
            return false;
        }

        public object Clone()
        {
            Beam beam = new Beam();
            beam.Color = Color;
            return beam;
        }

    }

}
